// 演示国际化的插件引入
import Vue from 'vue'
// 引入库
import VueI18N from 'vue-i18n'
// 注册库
Vue.use(VueI18N)
// 创建实例
// 引入饿了么ui字典语言包
import ElementUIZh from 'element-ui/lib/locale/lang/zh-CN'
import ElementUIEn from 'element-ui/lib/locale/lang/en'
import menuZh from '@/i18n/zh.js'
import menuEn from '@/i18n/en.js'
export default new VueI18N({
  locale: localStorage.getItem('lang') || 'zh',
  messages: {
    zh: {
      morning: '早安!',
      goodDay: '祝你开心每一天',
      WorkOvertimeDeparture: '加班离职',
      TakePaidLeave: '请假调休',
      approvalList: '审批列表',
      MyInfo: '我的信息',
      businessProcess: '流程申请',
      questions: {
        delEmployee: '是否删除员工',
        delRole: '是否删除角色'
      },
      ...ElementUIZh,
      ...menuZh
    },
    en: {
      morning: 'goodMorning',
      goodDay: 'have a good day',
      WorkOvertimeDeparture: 'WorkOvertimeDeparture',
      TakePaidLeave: 'TakePaidLeave',
      approvalList: 'approvalList',
      MyInfo: 'MyInfo',
      businessProcess: 'BusinessProcess',
      questions: {
        delEmployee: 'Are you sure',
        delRole: 'Are you sure'
      },
      ...ElementUIEn,
      ...menuEn
    }
  }

})
